We want to find focusable children, so we need to look at
the focusable property, not at can-focus. This is a change
from GTK 3, where can-focus was the correct property to
look at.
GtkWidget *child = priv->child;
gboolean had_focus = FALSE;
- /* Without "can-focus" flag try to pass the focus to the child immediately */
- if (!gtk_widget_get_can_focus (widget))
+ /* Without "focusable" flag try to pass the focus to the child immediately */
+ if (!gtk_widget_get_focusable (widget))
{
if (child)
{
return TRUE;
}
- /* If the child has its "can-focus" property set to FALSE then it will
+ /* If the child has its "focusable" property set to FALSE then it will
* not grab the focus. We must pass the focus to its child directly.
*/
- if (!gtk_widget_get_can_focus (GTK_WIDGET (child)))
+ if (!gtk_widget_get_focusable (GTK_WIDGET (child)))
{
GtkWidget *subchild;